﻿<UserControl x:Class="AGMLite.UserControl.FieldOptionalSelectionUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <Grid>
        <StackPanel Orientation="Vertical" Margin="5">
            <TextBlock Text="{Binding Label}" Height="24" HorizontalAlignment="Center" Margin="2"></TextBlock>
            <ComboBox Height="23" HorizontalAlignment="Center" Name="cmbFieldOptionals" VerticalAlignment="Top" Width="120" 
                      ItemsSource="{Binding Options}" DisplayMemberPath="Value" SelectedValuePath="Key" Margin="2"
                      SelectedValue="{Binding Value}"/>
            <Button Name="btnOK" Content="OK" Width="80" Margin="2" Click="btnOK_Click"></Button>
        </StackPanel>
    </Grid>
</UserControl>
